<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      template="./template.xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      >
    <head>
        <title>Altas</title>
        <meta name="viewport" content="width=device-width"/>
    </head>
    <body>
        <h:form>
            <h:panelGrid columns="2" cellpadding="5">
                <p:outputLabel for="idLibros" value="idLibros: " />
                <p:inputText id="idLibros" value="#{libro.idLibros}" />

                <p:outputLabel for="autor" value="autor: " />
                <p:inputText id="autor" value="#{libro.autor}" />

                <p:outputLabel for="titulo" value="titulo:" />
                <p:inputText id="titulo" value="#{libro.titulo}" />  
                <p:commandButton value="Guardar" actionListener="#{libro.salvar()}" oncomplete="PF('dlg').show()"/>
               

            </h:panelGrid>
            

            
            

            
        </h:form>
    </body>
</html>
